package cn.yiueil.advice;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * 运行在原始方法之前
 */
public class Before implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println();
        System.out.println("log " + method.getName() + " start-------------------");
    }
}
